package sqlTestes.tColuna;

import junit.framework.Assert;

import org.junit.Test;

import sql.ddl.coluna.Coluna;
import sql.ddl.coluna.ListaColuna;
import sql.ddl.coluna.types.Int4;

public class TesteListaColunas {

	@Test
	public void testarAdciorUmaColuna() {
		ListaColuna lista = new ListaColuna();
		lista.add(new Coluna("a", "a"));
		Assert.assertEquals(1, lista.size());
	}

	@Test
	public void testarAdcionarDuasColunasIguais() {
		ListaColuna lista = new ListaColuna();
		Assert.assertEquals(true, lista.add(new Int4("a", null)));
		Assert.assertEquals(false, lista.add(new Int4("a", null)));
		Assert.assertEquals(1, lista.size());
	}

}
